<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<html>
	<head>
		<title>修改角色</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="${path}/css/backsys/ctx.css">
	</head> 
	<body>
		<div class="ctx">
			<form action="${path}/privilegeRole!updateByIdRole.action" method="post">
				<table class="ow" width="100%">
					<tr>
						<td align="right">角色名称：</td>
						<td><input type="text" name="roleVo.roleName" value="${queryByIdRole.roleName}"/></td>
					</tr>
					<tr>
						<td align="right">角色描述：</td>
						<td><input type="text" name="roleVo.roleDesc" value="${queryByIdRole.roleDesc}" /></td>
					</tr>
					<tr>
						<td align="right">角色：</td>
						<td>
							<div style="float:left;width:350px;">
								<c:forEach var="resLists" items="${resList}" varStatus="v">
									<c:forEach var="res" items="${queryByIdRole.resource}">
										<c:if test="${resLists.resId==res.resId}">
											<c:set var="n" value="${resLists.resId}"></c:set>
											<div style="width:150px;float:left;">
												<input type="checkbox" value="${resLists.resId}" name="resId" checked="checked"/><b>${resLists.resName}</b>
											</div>
										</c:if>
									</c:forEach>
									<c:if test="${n != resLists.resId}">
										<div style="width:150px;float:left;">
											<input type="checkbox" value="${resLists.resId}" name="resId"/>${resLists.resName}
										</div>
									</c:if>
								</c:forEach>
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="hidden" name="roleVo.roleId" value="${queryByIdRole.roleId}" />
							<input type="submit" value="修改"/>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
